package cn.bellychang.decorator.demo01;

/**
 * @author ChangLiang
 * @date 2019/6/19
 */
public class ConcreteDecoratorB extends Decorator {



    public ConcreteDecoratorB(Component decorated) {
        super(decorated);
    }

    @Override
    public void methodA() {
        super.methodA();
        addedBehavior();
    }

    private void addedBehavior() {
        System.out.println("invoke ConcreteDecoratorB addedBehavior");
    }
}
